package com.itheima.API;

public class Login {
    private String username;
    private int password;

    public void setUsername() {
        username = "zh";
    }

    public String getUsername() {
        return username;
    }

    public void setPassword() {
        password = 123456;
    }

    public int getPassword() {
        return password;
    }

    public void equal(String name, int word) {
        if (username.equals(name) && password == word) {
            System.out.println("登入成功");
        }else {
            System.out.println("输入错误");
        }
//        return a;
    }
}
